<script type="text/javascript">
$(function(){
	var pg = App.base.appView.ui, pp = pg.params || {},
		frm = pg.find('.form');

	function setValues(o) {
		frm.seek('code').text(o.code);
		frm.seek('name').text(o.name);
		frm.seek('path').text(o.sourcePath);
		frm.seek('memo').text(o.memo);
		frm.seek('sourcePath').text(o.sourcePath);
		frm.seek('deployCode').text(o.deployCode);
		frm.seek('undeployCode').text(o.undeployCode);
		frm.seek('packCode').text(o.packCode);
		frm.seek('libPath').text(o.libPath);
		frm.seek('handler').text(o.handler);
		frm.seek('port').text(o.port);
		frm.seek('user').text(o.user);
		frm.seek('type').text(o.type==0?//
				'普通应用（需要编译、部署）':(o.type==1?//
						'打包配置（只需要导出源码）':'应用配置（需要编译、部署）'));
		frm.seek('packPath').text(o.packPath);
		frm.seek('startCode').text(o.startCode);
		frm.seek('restartCode').text(o.restartCode);
		frm.seek('shutdownCode').text(o.shutdownCode);
		frm.seek('version').text(o.version);
	}
	
	setValues(pp);
	
	function adjust(){
		var p = pg.parent(), h = p.height();
		pg.height(h);
		frm.height(h - 2).width(p.width() - 2);
	}
	$(window).resize(adjust);
	adjust();
});
</script>
<div class="infoPl form">
	<div class="item">
		<span class="label">英文名：</span>
		<span class="value" name="code"></span>
	</div>
	<div class="item">
		<span class="label">中文名：</span>
		<span class="value" name="name"></span>
	</div>
	<div class="item">
		<span class="label">类型：</span>
		<span class="value" name="type"></span>
	</div>
	<div class="item">
		<span class="label">版本号：</span>
		<span class="value" name="version"></span>
	</div>
	<div class="item">
		<span class="label">端口：</span>
		<span class="value" name="port"></span>
	</div>
	<div class="item">
		<span class="label">用户：</span>
		<span class="value" name="user"></span>
	</div>
	<div class="item">
		<span class="label">源码路径：</span>
		<span class="value" name="sourcePath"></span>
	</div>
	<div class="item">
		<span class="label">部署路径：</span>
		<span class="value" name="deployPath"></span>
	</div>
	<div class="item">
		<span class="label">描述：</span>
		<span class="memo" name="memo"></span>
	</div>
	<!--  -->
	<div class="item">
		<span class="label">检测器：</span>
		<span class="value" name="handler"></span>
	</div>
	<div class="item">
		<span class="label">优先级：</span>
		<span class="value" name="level"></span>
	</div>
	<div class="item">
		<span class="label">库包路径：</span>
		<span class="value" name="libPath"></span>
	</div>
	<div class="item">
		<span class="label">打包构建：</span>
		<span class="value" name="packCode"></span>
	</div>
	<div class="item">
		<span class="label">包生成路径：</span>
		<span class="value" name="packPath"></span>
	</div>
	<div class="item">
		<span class="label">部署构建：</span>
		<span class="value" name="deployCode"></span>
	</div>
	<div class="item">
		<span class="label">启动构建：</span>
		<span class="value" name="startCode"></span>
	</div>
	<div class="item">
		<span class="label">重启构建：</span>
		<span class="value" name="restartCode"></span>
	</div>
	<div class="item">
		<span class="label">停机构建：</span>
		<span class="value" name="shutdownCode"></span>
	</div>
	<div class="item">
		<span class="label">卸载构建：</span>
		<span class="value" name="undeployCode"></span>
	</div>
</div>